import Layout from '@/layout'

const businessRouter = {
  path: '/customerAcquisition/business',
  component: Layout,
  redirect: '/customerAcquisition/business/index',
  name: 'business',
  alwaysShow: true,
  meta: {
    title: '商家信息',
    icon: 'clipboard'
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/customerAcquisition/business/index.vue'),
      name: 'BusinessIndex',
      meta: { title: '商家信息列表' }
    },
    {
      path: 'detail/:id?',
      component: () => import('@/views/customerAcquisition/business/detail.vue'),
      name: 'BusinessDetail',
      meta: { title: '商家详情' }
    }
  ]
}

export default businessRouter
